from django.db import models

class icones_desktop(models.Model):
	nome = models.CharField(max_length=50)
	iconame = models.CharField(max_length=50)
	launch = models.CharField(max_length=50)

class menu_iniciar(models.Model):
	nome = models.CharField(max_length=50)
	iconame = models.CharField(max_length=50)
	launch = models.CharField(max_length=50)
		
class usuario(models.Model):
	login = models.CharField(max_length=50)
	passw = models.CharField(max_length=150)
	nome = models.CharField(max_length=150)
	
class menu_ini_usuario(models.Model):
	user = models.ForeignKey(usuario)
	menu_iniciar = models.ManyToManyField(menu_iniciar)
	
	
class filejavascript(models.Model):
	nome = models.CharField(max_length=50)
	namefile = models.CharField(max_length=50, help_text= "Deve estar no diretorio especifico")
	def __unicode__(self):
		return self.nome
		
class modulo(models.Model):
	nome = models.CharField(max_length=50)
	ativo = models.BooleanField()
	jsc = models.ManyToManyField(filejavascript)
	help = models.TextField()
